package com.luoye.lj.platform.dao.mapper;


import com.luoye.lj.platform.model.domain.AuthInfo;
import com.luoye.lj.platform.model.domain.AuthInfoSearchCondition;

import java.util.List;

/**
 * Created by wei on 2015/11/30.
 */
public interface IAuthServiceMapper {
    //添加角色
    int addAuth(AuthInfo aif);
    //删除角色
    int delAuth(long authId);
    //修改
    int modifyAuth(AuthInfo aif);
    //查询所有
    List<AuthInfo> getAll();
    //根据ID查询
    AuthInfo getById(long id);
    //根据name查询
    AuthInfo getByname(String authname);
    //条件查询
    List<AuthInfo> search(AuthInfoSearchCondition authsearch);
    //查询总的页数
    int talCount(AuthInfoSearchCondition authsearch);
    //根据ID查询delmark值
    int getDelmark(long id);
    //将delmark值更改为0
    int recover(long id);
}
